package com.ruoyi.system.service.fx;

import com.ruoyi.system.domain.dto.FxGoodPurchaseDto;
import com.ruoyi.system.domain.fx.FxGoodPurchase;

import java.util.List;

/**
 * 商品采购Service接口
 *
 * @author ruoyi
 * @date 2024-07-23
 */
public interface IFxGoodPurchaseService {
    /**
     * 查询商品采购
     *
     * @param id 商品采购主键
     * @return 商品采购
     */
    public FxGoodPurchase selectFxGoodPurchaseById(Long id);

    /**
     * 查询商品采购列表
     *
     * @param fxGoodPurchase 商品采购
     * @return 商品采购集合
     */
    public List<FxGoodPurchase> selectFxGoodPurchaseList(FxGoodPurchase fxGoodPurchase);

    /**
     * 新增商品采购
     *
     * @param fxGoodPurchase 商品采购
     * @return 结果
     */
    public int insertFxGoodPurchase(FxGoodPurchase fxGoodPurchase);

    /**
     * 批量采购
     *
     * @param fxGoodPurchaseDto
     * @return
     */
    int insertMultiGoodPurchase(FxGoodPurchaseDto fxGoodPurchaseDto);

    /**
     * 选中确认采购
     * @param fxGoodPurchaseDto
     * @return
     */
    int insertPurchase(FxGoodPurchaseDto fxGoodPurchaseDto);

    /**
     * 修改商品采购
     *
     * @param fxGoodPurchase 商品采购
     * @return 结果
     */
    public int updateFxGoodPurchase(FxGoodPurchase fxGoodPurchase);

    /**
     * 批量删除商品采购
     *
     * @param ids 需要删除的商品采购主键集合
     * @return 结果
     */
    public int deleteFxGoodPurchaseByIds(Long[] ids);

    /**
     * 删除商品采购信息
     *
     * @param id 商品采购主键
     * @return 结果
     */
    public int deleteFxGoodPurchaseById(Long id);


   //购物车数量
    public int selectFxGoodPurchaseListCount(FxGoodPurchase fxGoodPurchase);
}
